package com.zheng.damo;

public class Teacher extends People{
    public String subject;

    public Teacher(){
        System.out.println("子类无参构造");
    }
    public Teacher(String name, int age) {
        super(name, age);
        System.out.println("子类有参构造");
    }

    @Override
    public void eat() {
        System.out.println("老师吃");
    }
    public void teach(){
        System.out.println("教书");
    }
}
